<html>
<body>
<?php 
$myShape1=new SWFShape(); 
$myShape1->setLine(5,0,0,255); 
$myShape1->setRightFill(255,255,0); 
$myShape1->movePen(-30,-30); 
$myShape1->drawLine(60,0); 
$myShape1->drawLine(0,60); 
$myShape1->drawLine(-60,0); 
$myShape1->drawLine(0,-60); 
$myMovie=new SWFMovie(); 
$myMovie->setDimension(460,80); 
$myMovie->setBackground(255,0,0); 
$movingSquare=$myMovie->add($myShape1); 
$movingSquare->scale(0.5,0.5); 
$movingSquare->moveTo(40,40); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->nextFrame(); 
$movingSquare->scale(1.1,1.1); 
$movingSquare->move(40,0); 
$myMovie->save("temp/lesson8-scale.swf"); 
?> 
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID=objects WIDTH=460 HEIGHT=80>
<PARAM NAME=movie VALUE="temp/lesson8-scale.swf">
<EMBED src="temp/lesson8-scale.swf" WIDTH=460 HEIGHT=80 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</OBJECT>
</body>
</html>